package com.pi.base.constant;

public class SysStatics {
	
	
	/**
	 * session名
	 */
	public static final String WEB_USER_SESSION = "users";
	
	public static final String WEB_ROLE_SESSION = "loginedUserRole";
	
	public static final String WEB_GROUP_SESSION = "loginedUserGroupWithSubIdsStr";
	
	public static final String WEB_BTNAUTH_SESSION = "loginedUserRoleButtonCodeStrs";
	
	public static final String WEB_FIRSTMENU_SESSION = "loginedUserHeadMenuID";
	
	/**
	 * cookie名
	 */
	public static final String WEB_USERNAME_COOKIE = "loginDefaultUserName";
	
	
	/**
	 * 登录 action
	 */
	public static final String USERLOGIN_URL = "login.action";
	
    
	/**
	 * 后台人员状态 1 = 删除
	 */
	public static final int SysUserState_Del = 10;
	
	/**
	 * 后台人员状态 2 = 禁用
	 */
	public static final int SysUserState_fbd = 2;
	
	/**
	 * 后台人员状态 2 = 禁用
	 */
	public static final int SysUserState_Normal = 0;
	
	/**
	 * 是超级管理员
	 */
	public static final int SysUser_IsSuperAdmin = 1;
	
	/**
	 * 不是超级管理员
	 */
	public static final int SysUser_NotSuperAdmin = 0;
	
	/**
	 * 系统菜单层次 = 2
	 */
	public static final int SysMenu_Level_Two = 2;
	
	/**
	 * 菜单的根节点 = 0
	 */
	public static final int MENU_TREE_ROOT = 0;
	
	/**
	 * 按钮等级 = 5;
	 */
	public static final int MENU_BTN_LEVEL = 5;
	
	/**
	 * 角色状态 0 = 可用
	 */
	public static final int ROLE_STATE_NORMAL = 0;
	/**
	 * 角色状态 1 = 删除
	 */
	public static final int ROLE_STATE_DEL = 1;
	/**
	 * 角色状态 2 = 禁用
	 */
	public static final int ROLE_STATE_FORBID = 2;
	
	/**
	 * 默认密码
	 */
	public static final String SYS_PWD = "12345678";
	
	/**
	 * 后台用户类型 管理员: type = 1 
	 */
	public static final int SYSUSER_TYPE_ADMIN = 1;
	/**
	 * 后台用户类型 经销商: type = 2
	 */
	public static final int SYSUSER_TYPE_BUSINESS = 2; 
	 /**
   * 后台用户类型 经销商: type = 2
   */
  public static final int SYSUSER_TYPE_WORKER = 3; 
	
  /**
   * @description 一级经销商角色
   */
  public static final int PARENT_SELLER_ROLE = 22;
  /**
   * @description 下级经销商角色
   */
  public static final int OTHER_SELLER_ROLE = 23;
  
  /**
   * @description 工作人员角色
   */
  public static final int SYS_WORKER_ROLE = 24;
}
